package com.tang.javaSwingCaculate.Stack;

/**
 * @author tmh
 * @date 2022/12/5 0:19
 * @description
 */
public class demoTest {
    public static void main(String[] args) {
        String input = "a+b*c+(d*e+f)*g";
        String test = "a+(b-c)*d";
        String realTest = "1+(2-3)*4";
        String division="99/3";
        String str = "11+22.6*(3/4)";
        InToPost inToPost = new InToPost(division);
        inToPost.formatTrans();
        //期望结果 a b c * + d e * f + g * +
        Double result = inToPost.calculateResult();
        System.out.println(result);
//        Integer result = inToPost.calculateResult();
//        System.out.println(result);
    }
}

